package com.zhaojiu.example.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.function.Predicate;

/**
 * @author 11863
 */
@Data
@AllArgsConstructor
public class Person {
    private String name;
    private int age;
    private String sex;

    public boolean isAdult(){
        return age >= 18;
    }

}
